
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico"> 
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <style>
    </style>
</head>

<body style="color:#333;padding:3px;overflow-x: auto;">
    <!-- 标题 -->
    <div class="page-heade">
      <h1 class="title_color">发运数据查询</h1>
    </div>
    <!-- 标题 -->
    <div class="row-margin-top">
    <form action=""  class="form-inline">
      <table class="row-margin-top tab-content table-bordered  table" border="1">
      	   <tr>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">发运类型</label><span class="helpText">帮</span></td>
            <td>
				<select name="" id="" class="form-control">
					<option value="0">所有发运</option>
					<option value="1">搭赠发运</option>
				</select>
            </td>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">分区</label></td>
            <td><input type="text" class="form-control" name=""></td>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">省份</label></td>
            <td><input type="text" class="form-control" name=""></td>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">城市</label></td>
            <td><input type="text" class="form-control" name=""></td>
            </tr>
          <tr>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">经销商编号</label></td>
            <td><input type="text" class="form-control" name=""></td>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">经销商名称</label></td>
            <td><input type="text" class="form-control" name=""></td>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">网点编号</label></td>
            <td><input type="text" class="form-control" name=""></td>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">网点名称</label></td>
            <td><input type="text" class="form-control" name=""></td>
            </tr>
            <tr>
        	<td style="min-width: 120px;width: 120px"><label for="" class="form-label">品牌</label></td>
            <td><input type="text" class="form-control" name=""></td>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">品类</label></td>
            <td><input type="text" class="form-control" name=""></td>
             <td style="min-width: 120px;width: 120px"><label for="" class="form-label">系列</label></td>
            <td><input type="text" class="form-control" name=""></td>
             <td style="min-width: 120px;width: 120px"><label for="" class="form-label">SKU</label></td>
            <td><input type="text" class="form-control" name=""></td>
            </tr>
             <tr>
               <td style="min-width: 120px;width: 120px"><label for="" class="form-label">产品编码</label></td>
            <td><input type="text" class="form-control" name=""></td>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">产品名称</label></td>
            <td><input type="text" class="form-control" name=""></td>
             <td style="min-width: 120px;width: 120px"><label for="" class="form-label">发运日期</label></td>
            <td>
                 <div class="form-group">
            <input type="text" id="start" class="form-control layer-date " style="width: 120px;min-width: 120px; display: inline-block;" name="">
           </div>
            <div class="form-group">
                至
            </div>
           <div class="form-group">
            <input type="text" class="form-control layer-date" style="width: 120px;min-width: 120px;display: inline-block;" id="end" name="">
           </div>
            </td>
              <td class="text-left" colspan="2">
              <button class="btn btn-info query">查询</button>
              <button class="btn btn-info emptyIf" type="button">清空</button>
              <button class="btn btn-info LendExcel" type="button">导出Excel</button>
            </td>
            </tr>
      </table>
      <p class="padding-10">数量合计：<span>2682280</span>.00 &nbsp;发运开票金额合计：<span class="ObjectNum">457473008.66</span></p>
      <table class="table table-bordered table-hover text-center" id="verifytable">
          <tr class="info text-center">
              <th style="min-width: 60px;width: 60px" class="text-center">No.</th>
              <th style="min-width: 80px;width: 80px" class="text-center">分区</th>
              <th style="min-width: 80px;width: 80px" class="text-center">省份</th>
              <th style="min-width: 80px;width: 80px" class="text-center">城市</th>
              <th style="min-width: 120px;width: 120px" class="text-center">售达方<br>经销商编号</th>
              <th style="min-width: 160px;width: 160px" class="text-center">售达方经销商<br>名称</th>
              <th style="min-width: 140px;width: 140px" class="text-center">售达方<br>网点编号</th>
              <th style="min-width: 140px;width: 140px" class="text-center">售达方<br>网点名称</th>
              <th style="min-width: 140px;width: 140px" class="text-center">产品编码</th>
              <th style="min-width: 160px;width: 160px" class="text-center">产品名称</th>
              <th style="min-width: 100px;width: 100px" class="text-center">数量</th>
              <th style="min-width: 160px;width: 160px" class="text-center">发运<br>基本单位</th>
              <th style="min-width: 120px;width: 120px" class="text-center">发运开票金额</th>
              <th style="min-width: 120px;width: 120px" class="text-center">毛发运金额</th>
              <th style="min-width: 120px;width: 120px" class="text-center">净发运金额</th>
              <th style="min-width: 120px;width: 120px" class="text-center">发运日期</th>
              <th style="min-width: 120px;width: 120px" class="text-center">订单号</th>
              <th style="min-width: 120px;width: 120px" class="text-center">发运单号</th>
              <th style="min-width: 120px;width: 120px" class="text-center">批号/批次</th>
              <th style="min-width: 160px;width: 160px" class="text-center">备注</th>
              <th style="min-width: 120px;width: 120px" class="text-center">销售人员</th>
          </tr>
          <tbody>
              <tr>
                    <td>1</td>
                    <td>东南大区</td>
                    <td>福建省</td>
                    <td>福州市</td>
                    <td>201703110006_1</td>
                    <td>广东省广州市博洁贸易有限公司</td>
                    <td></td>
                    <td></td>
                    <td>DHW4120</td>
                    <td>大和味香辣鸡翅味</td>
                    <td class="ObjectNum">12</td>
                    <td class="ObjectNum">箱</td>
                   	<td class="ObjectNum">1958.11</td>
                    <td class="ObjectNum"></td>
                    <td class="ObjectNum"></td>
                    <td>2017-05-12</td>
                    <td>abc</td>
                    <td>abc</td>
                    <td></td>
                    <td></td>
                    <td>张三</td>
              </tr>
               
          </tbody>
      </table>
      <h5 class="text-center">
            总共有1条记录，第1/4页，当前页：<input id="page" type="text" style="width: 70px;" value="" class="form-control" /><span id="gopage">GO</span>&nbsp;&nbsp;<span id="fistpage">首页</span>&nbsp;&nbsp; 每页显示
            <select id="pagesize" style="width: 70px" class="form-control">
            <option value='5'>5</option>
            <option value='10'>10</option>
          </select>条
        </h5>

</form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <!--统计代码，可删除-->
    <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
    <script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
    <script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>
     <script src="__STATIC__/layout/js/common.js"></script>
    <script>
        //日期范围限制
        var start = {
            elem: '#start',
            format: 'YYYY/MM/DD',
            min: laydate.now(), //设定最小日期为当前日期
            max: '2099-06-16 23:59:59', //最大日期
            istime: true,
            istoday: false,
            choose: function (datas) {
                end.min = datas; //开始日选好后，重置结束日的最小日期
                end.start = datas //将结束日的初始值设定为开始日
            }
        };
        var end = {
            elem: '#end',
            format: 'YYYY/MM/DD',
            min: laydate.now(),
            max: '2099-06-16 23:59:59',
            istime: true,
            istoday: false,
            choose: function (datas) {
                start.max = datas; //结束日选好后，重置开始日的最大日期
            }
        };
        laydate(start);
        laydate(end);
        $(document).ready(function(){
            // $("#verifytable tbody tr td").find('.duigou')
          /*格式化数字金额*/
          var $ObjectNum =$(".ObjectNum");
             toNum($ObjectNum);
          /*为已生效的核销申请字体加粗*/
            var $duigou =$(".duigou");
             $duigou.parent().addClass("font-bold");

/*设置允许解锁*/
        $("#allowSuo").click(function() {
            // $("#alert_addNewZone").show();
            var $items = $("[name=items]:checkbox")
            if ($items.filter(':checked').length < 1) {
                sweetAlert("", "请选择允许解锁的数据！", "error");
            } else {
              $items.each(function(){ 
              	if( $(this).is(':checked')){
              		 $(this).parent().parent().remove()
              		}
				}); 
            }
        });

/*弹出隐藏的tr*/
          /*table表格操作*/
      $("#checkAll").click(function() {

            $("[name=items]:checkbox").prop("checked", $(this).prop("checked"));
            if ($("[name=items]:checkbox").prop("checked") != true) {
                // console.log($(this))
                $("[name=items]:checkbox").parents("tr").css("backgroundColor", "#fff")
            } else {
                $("[name=items]:checkbox").parents("tr").css("backgroundColor", "#f8f800")

            }
        })
        $("[name=items]:checkbox").click(function() {
            //定义一个临时变量，避免重复使用同一个选择器选择页面中的元素，提高程序效率
            // console.log(1)
            var $tmp = $("[name=items]:checkbox");
            if ($(this).prop("checked") != true) {
                // console.log($(this))
                $(this).parent().parent().css("backgroundColor", "#fff")
            } else {
                $(this).parent().parent().css("backgroundColor", "#f8f800")

            }
            //用filter()方法筛选出选中的复选框，并直接给CheckedAll赋值
            $("#checkAll").prop('checked', $tmp.length == $tmp.filter(':checked').length);

          })
        })
         
    </script>
</body>

</html>
